
function createClientVest(bank,build,animate)
local inst=CreateEntity()

inst:AddTag("FX")
inst:AddTag("NOCLICK")

inst.entity:SetCanSleep(false)
inst.persists=false

inst.entity:AddTransform()
inst.entity:AddAnimState()

MakeInventoryPhysics(inst)
inst.Physics:ClearCollisionMask()

inst.AnimState:SetBank(bank)
inst.AnimState:SetBuild(build)
inst.AnimState:PlayAnimation(animate)

return inst
end


function createEffectVest(bank,build,animate)
local inst=createClientVest(bank,build,animate)


inst:ListenForEvent("animover",inst.Remove)

return inst
end

return {
createClientVest=createClientVest,
createEffectVest=createEffectVest,
}